﻿using System;
using System.Collections.Generic;
using System.Text;
using EmailJabber.Logic.Commands.Base;
using EmailJabber.Logic;

namespace EmailJabber.EmailJabber.Core.Commands.Common
{
    public class CommandThreadWorker
    {
        private CommandBase _commandBase;
        private MessageIM _message;
        public CommandThreadWorker(CommandBase command,MessageIM message)
        {
            _commandBase = command;
            _message = message;
        }

        public void Run()
        {
            _commandBase.Execute(_message);
        }
    }
}